import 'package:flutter/material.dart';

class ThemeConfig {
  static const Color mainColor = Color(0xFF4D81EF);
  static const String appTitle = "通用绿能燃气";
  static const String version = '1.0.0';
  static const String key_guide = 'key_guide';

  static const List<String> supportCtrlCode = [];

  static const Color blackColor = Color(0xFF333333);
  static const Color black34Color = Color(0xFF343434);
  static const Color black102Color = Color(0xFF666666);
  static const Color black85Color = Color(0xFF555555);
  static const Color black153Color = Color(0xFF999999);
  static const Color black142Color = Color(0xFF8E8E93);
  static const Color lineColor = Color(0xFFE9E9E9);
  static const Color separeColor = Color(0xFFF8F8F8);

  // static const String consumer_phone = '0394-6212289';

  static Color rgba(r, g, b, double opacity) {
    return Color.fromRGBO(r, g, b, opacity);
  }

  static const String errDesc_login = '登录超时，请重新登录';
  static const String iosAppId = '1560756893';

  static const int phoneTextLength = 11;
  static const int codeTextLength = 6;
  static const int passwordTextLength = 20;
  static const int descTextLength = 300;

  // static const String platForm = 'aode.bsnss.cn';
  static const String platFormId = '2';
}

class TextThemeConfig {
  static const ActionBarTitle = TextStyle(
    color: Colors.white,
    fontSize: 15,
    fontWeight: FontWeight.w500,
  );

  static const MainViewItemStyle = TextStyle(
    color: Colors.white,
    fontSize: 15,
    fontWeight: FontWeight.w500,
  );

  static const MainViewItemStyle2 = TextStyle(
    color: Color(0xFF222222),
    fontSize: 13,
    fontWeight: FontWeight.w500,
  );

  static const UserCenterItemStyle = TextStyle(
    color: Color(0xFF222222),
    fontSize: 15,
    fontWeight: FontWeight.w500,
  );

  static const AppBarTitle = TextStyle(
    color: Colors.white,
    fontSize: 18.5,
    fontWeight: FontWeight.w500,
  );

  static const ItemTitleStyle = TextStyle(
    color: ThemeConfig.blackColor,
    fontSize: 14,
    fontWeight: FontWeight.w600,
    fontFamily: 'PingFang Medium',
  );
  static const ItemTitleBigStyle = TextStyle(
    color: ThemeConfig.blackColor,
    fontSize: 17,
    fontWeight: FontWeight.w600,
    fontFamily: 'PingFang Medium',
  );

  static const Font11WithColor99 = TextStyle(
    color: Color(0xFF999999),
    fontSize: 11,
  );

  static const Font11WithColor77 = TextStyle(
    color: Color(0xFF777777),
    fontSize: 11,
  );

  static const Font12WithColorWhite = TextStyle(
    color: Colors.white,
    fontSize: 12,
    fontWeight: FontWeight.w500,
  );

  static const Font12WithColor99 = TextStyle(
    color: Color(0xFF999999),
    fontSize: 12,
    fontWeight: FontWeight.w500,
  );

  static const Font12WithMainColor = TextStyle(
    color: ThemeConfig.mainColor,
    fontSize: 12,
    fontWeight: FontWeight.w500,
  );

  static const Font12WithRedColor = TextStyle(
    color: Colors.red,
    fontSize: 12,
    fontWeight: FontWeight.w500,
  );

  static const Font12WithColor22 = TextStyle(
    color: Color(0xFF222222),
    fontSize: 12,
    fontWeight: FontWeight.w500,
  );

  static const Font12WithColor30 = TextStyle(
    color: Color(0xFF303030),
    fontSize: 12,
    fontWeight: FontWeight.w500,
  );

  static const Font12WithColor34 = TextStyle(
    color: Color(0xFF343434),
    fontSize: 12,
    fontWeight: FontWeight.w500,
  );

  static const Font12WithColor66 = TextStyle(
    color: Color(0xFF666666),
    fontSize: 12,
    fontWeight: FontWeight.w500,
  );

  static const Font13WithColor22 = TextStyle(
    color: Color(0xFF222222),
    fontSize: 13,
    fontWeight: FontWeight.w500,
  );

  static const Font13WithColor34 = TextStyle(
    color: Color(0xFF343434),
    fontSize: 12,
    fontWeight: FontWeight.w500,
  );

  static const Font13WithColor66 = TextStyle(
    color: Color(0xFF666666),
    fontSize: 13,
    fontWeight: FontWeight.w500,
  );

  static const Font13WithColor78 = TextStyle(
    color: Color(0xFF787878),
    fontSize: 13,
    fontWeight: FontWeight.w400,
  );

  static const Font13WithColor85 = TextStyle(
    color: Color(0xFF858585),
    fontSize: 13,
    fontWeight: FontWeight.w500,
  );

  static const Font13WithColor102 = TextStyle(
    color: Color(0xFF666666),
    fontSize: 13,
    fontWeight: FontWeight.w500,
  );

  static const Font13WithColor99 = TextStyle(
    color: Color(0xFF999999),
    fontSize: 13,
    fontWeight: FontWeight.w500,
  );

  static const Font13WithColorblue = TextStyle(
    color: Color(0xFF4D81EF),
    fontSize: 13,
    fontWeight: FontWeight.w500,
  );

  static const Font13WithBigColor22 = TextStyle(
    color: Color(0xFF222222),
    fontSize: 13,
    fontWeight: FontWeight.w600,
  );

  static const Font13WithColorWhite = TextStyle(
    color: Colors.white,
    fontSize: 13,
    fontWeight: FontWeight.w500,
  );

  static const Font13WithMainColor = TextStyle(
    color: ThemeConfig.mainColor,
    fontSize: 13,
    fontWeight: FontWeight.w500,
  );

  static const Font14WithColor22 = TextStyle(
    color: Color(0xFF222222),
    fontSize: 14,
    fontWeight: FontWeight.w500,
  );

  static const Font14WithColor44 = TextStyle(
    color: Color(0xFF444444),
    fontSize: 14,
    fontWeight: FontWeight.w500,
  );

  static const Font14WithColor66 = TextStyle(
    color: Color(0xFF666666),
    fontSize: 14,
    fontWeight: FontWeight.w500,
  );

  static const Font14WithColor99 = TextStyle(
    color: Color(0xFF999999),
    fontSize: 14,
    fontWeight: FontWeight.w500,
  );

  static const Font14WithColor133 = TextStyle(
    color: Color(0xFF858585),
    fontSize: 14,
    fontWeight: FontWeight.w500,
  );

  static const Font14WithColorRed = TextStyle(
    color: Colors.red,
    fontSize: 14,
    fontWeight: FontWeight.w500,
  );

  static const Font14WithMainColor = TextStyle(
    color: ThemeConfig.mainColor,
    fontSize: 14,
    fontWeight: FontWeight.w500,
  );

  static const Font14WithColorWhite = TextStyle(
    color: Colors.white,
    fontSize: 14,
    fontWeight: FontWeight.w500,
  );

  static const Font15WithColorWhite = TextStyle(
    color: Colors.white,
    fontSize: 15,
    fontWeight: FontWeight.w500,
  );

  static const Font15WithMainColor = TextStyle(
    color: Color(0xFF4D81EF),
    fontSize: 15,
    fontWeight: FontWeight.w500,
  );

  static const Font15WithColor22 = TextStyle(
    color: Color(0xFF222222),
    fontSize: 15,
    fontWeight: FontWeight.w500,
  );

  static const Font15WithBigColor22 = TextStyle(
    color: Color(0xFF222222),
    fontSize: 15,
    fontWeight: FontWeight.w600,
  );

  static const Font15WithColor97 = TextStyle(
    color: Color(0xFF979797),
    fontSize: 15,
    fontWeight: FontWeight.w400,
  );

  static const Font15WithColor99 = TextStyle(
    color: Color(0xFF999999),
    fontSize: 15,
    fontWeight: FontWeight.w400,
  );

  static const Font16WithWhite = TextStyle(
    color: Colors.white,
    fontSize: 16,
    fontWeight: FontWeight.w500,
  );

  static const Font16WithMainColor = TextStyle(
    color: ThemeConfig.mainColor,
    fontSize: 16,
    fontWeight: FontWeight.w500,
  );

  static const Font16WithColorRed = TextStyle(
    color: Colors.red,
    fontSize: 16,
    fontWeight: FontWeight.w500,
  );

  static const Font16WithColor22 = TextStyle(
    color: Color(0xFF222222),
    fontSize: 16,
    fontWeight: FontWeight.w500,
  );

  static const Font16WithColorBold22 = TextStyle(
    color: Color(0xFF222222),
    fontSize: 16,
    fontWeight: FontWeight.w600,
  );

  static const Font16WithColor34 = TextStyle(
    color: Color(0xFF343434),
    fontSize: 16,
    fontWeight: FontWeight.w500,
  );

  static const Font16WithColor66 = TextStyle(
    color: Color(0xFF666666),
    fontSize: 16,
    fontWeight: FontWeight.w400,
  );

  static const Font16WithColor99 = TextStyle(
    color: Color(0xFF999999),
    fontSize: 16,
    fontWeight: FontWeight.w500,
  );

  static const Font16WithColor97 = TextStyle(
    color: Color(0xFF979797),
    fontSize: 16,
    fontWeight: FontWeight.w400,
  );

  static const Font16BoldWithColor22 = TextStyle(
    color: Color(0xFF222222),
    fontSize: 16,
    fontWeight: FontWeight.w600,
  );

  static const Font17WithColor22 = TextStyle(
    color: Color(0xFF222222),
    fontSize: 17,
    fontWeight: FontWeight.w500,
  );

  static const Font17WithColor97 = TextStyle(
    color: Color(0xFF979797),
    fontSize: 17,
    fontWeight: FontWeight.w400,
  );

  static const Font18WithColor22 = TextStyle(
    color: Color(0xFF222222),
    fontSize: 18,
    fontWeight: FontWeight.w500,
  );

  static const Font18WithBoldColor22 = TextStyle(
    color: Color(0xFF222222),
    fontSize: 18,
    fontWeight: FontWeight.w600,
  );

  static const Font18WithColorWhite = TextStyle(
    color: Colors.white,
    fontSize: 18,
    fontWeight: FontWeight.w500,
  );

  static const Font21WithColor22 = TextStyle(
    color: Color(0xFF222222),
    fontSize: 21,
    fontWeight: FontWeight.w600,
  );

  static const Font22WithColorWhite = TextStyle(
    color: Colors.white,
    fontSize: 22,
    fontWeight: FontWeight.w600,
  );
}

class IconFontConfig {
  static const String FONT_FAMILY = 'customIconFont';
  static const IconData HOME_Pressed =
      const IconData(0xe647, fontFamily: FONT_FAMILY);
  static const IconData HOME_Nor =
      const IconData(0xe64c, fontFamily: FONT_FAMILY);
  static const IconData Sort_Pressed =
      const IconData(0xe64a, fontFamily: FONT_FAMILY);
  static const IconData Sort_Nor =
      const IconData(0xe648, fontFamily: FONT_FAMILY);
  static const IconData ShopCart_Pressed =
      const IconData(0xe640, fontFamily: FONT_FAMILY);
  static const IconData ShopCart_Nor =
      const IconData(0xe642, fontFamily: FONT_FAMILY);
  static const IconData UserCenter_Pressed =
      const IconData(0xe645, fontFamily: FONT_FAMILY);
  static const IconData UserCenter_Nor =
      const IconData(0xe646, fontFamily: FONT_FAMILY);
  static const IconData Up_Arrow =
      const IconData(0xe64f, fontFamily: FONT_FAMILY);
  static const IconData Down_Arrow =
      const IconData(0xe64e, fontFamily: FONT_FAMILY);
  static const IconData Back_Arrow =
      const IconData(0xe64d, fontFamily: FONT_FAMILY);

  static const IconData HomeIcon_Insurance =
      const IconData(0xe619, fontFamily: FONT_FAMILY);
  static const IconData HomeIcon_SafeReport =
      const IconData(0xe61b, fontFamily: FONT_FAMILY);
  static const IconData HomeIcon_gasMall =
      const IconData(0xe616, fontFamily: FONT_FAMILY);
  static const IconData HomeIcon_gasOrder =
      const IconData(0xe617, fontFamily: FONT_FAMILY);
  static const IconData HomeIcon_SafeOrder =
      const IconData(0xe610, fontFamily: FONT_FAMILY);
  static const IconData HomeIcon_gasNoSearch =
      const IconData(0xe611, fontFamily: FONT_FAMILY);
  static const IconData HomeIcon_gasStore =
      const IconData(0xe612, fontFamily: FONT_FAMILY);
  static const IconData HomeIcon_gasNoAdd =
      const IconData(0xe613, fontFamily: FONT_FAMILY);
  static const IconData HomeIcon_gasCharge =
      const IconData(0xe614, fontFamily: FONT_FAMILY);

  static const String FONT_3_TH = '3th_loginIconFont';
  static const IconData Weichat_ICON =
      const IconData(0xe504, fontFamily: FONT_3_TH);
  static const IconData Weibo_ICON =
      const IconData(0xe501, fontFamily: FONT_3_TH);
  static const IconData QQ_ICON = const IconData(0xe506, fontFamily: FONT_3_TH);
  static const IconData Zfb_ICON =
      const IconData(0xe61c, fontFamily: FONT_3_TH);
}
